#include "test01.h"


void bar()
{
	char bar1[NUM];
	memset(bar,0,sizeof(bar));
	
	const char* lable="|/-\\";   //4个符号
	int cnt=0;	
	while(cnt<=100)
{
	printf("[%-100s][%d%%] %c\r",bar1,cnt,lable[cnt%4]);
	bar1[cnt++]='#';
	fflush(stdout);
	usleep(30000);
}
	printf("\r");
}
